package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Buildinfo;
import org.apache.ibatis.annotations.Param;

/**
 * 楼栋信息Mapper接口
 * 
 * @author yaozh
 * @date 2024-03-04
 */
public interface BuildinfoMapper 
{
    /**
     * 查询楼栋信息
     * 
     * @param buildid 楼栋信息主键
     * @return 楼栋信息
     */
    public Buildinfo selectBuildinfoByBuildid(@Param("buildid") Long buildid, @Param("dbName") String dbName);

    /**
     * 查询楼栋信息列表
     * 
     * @param buildinfo 楼栋信息
     * @return 楼栋信息集合
     */
    public List<Buildinfo> selectBuildinfoList( @Param("appIds") Long[] appIds, @Param("buildinfo") Buildinfo buildinfo, @Param("dbName") String dbName);

    /**
     * 新增楼栋信息
     * 
     * @param buildinfo 楼栋信息
     * @return 结果
     */
    public int insertBuildinfo(@Param("buildinfo") Buildinfo buildinfo, @Param("dbName") String dbName);

    /**
     * 修改楼栋信息
     * 
     * @param buildinfo 楼栋信息
     * @return 结果
     */
    public int updateBuildinfo(@Param("buildinfo") Buildinfo buildinfo, @Param("dbName") String dbName);

    /**
     * 删除楼栋信息
     * 
     * @param buildid 楼栋信息主键
     * @return 结果
     */
    public int deleteBuildinfoByBuildid(@Param("buildid") Long buildid, @Param("dbName") String dbName);

    /**
     * 批量删除楼栋信息
     * 
     * @param buildids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuildinfoByBuildids(@Param("buildids") Long[] buildids, @Param("dbName") String dbName);
}
